package com.muyu.system.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 书画市场图片对象 danmo_market_picture
 *
 * @author yangle
 * @date 2024-09-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class DanmoMarketPicture extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 书画市场图片id */
    private Long id;

    /** 市场id */
    @Excel(name = "市场id")
    private Long marketId;

    /** 图片名称 */
    @Excel(name = "图片名称")
    private String name;

    /** 书画市场商品信息信息 */
    private List<DanmoMarketProducts> danmoMarketProductsList;

    private Integer pageNum = 1;
    private Integer pageSize = 10;
//    public void setId(Long id)
//    {
//        this.id = id;
//    }
//
//    public Long getId()
//    {
//        return id;
//    }
//    public void setMarketId(Long marketId)
//    {
//        this.marketId = marketId;
//    }
//
//    public Long getMarketId()
//    {
//        return marketId;
//    }
//    public void setName(String name)
//    {
//        this.name = name;
//    }
//
//    public String getName()
//    {
//        return name;
//    }

    public List<DanmoMarketProducts> getDanmoMarketProductsList()
    {
        return danmoMarketProductsList;
    }

    public void setDanmoMarketProductsList(List<DanmoMarketProducts> danmoMarketProductsList)
    {
        this.danmoMarketProductsList = danmoMarketProductsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("marketId", getMarketId())
            .append("name", getName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("danmoMarketProductsList", getDanmoMarketProductsList())
            .toString();
    }
}
